var foo = null;
foo = true;

var foo = 1,
  bar = false,
  baz = {};

function foo() {
  var foo = 0;
  var bar = [];
}

var fn = function () {};
var foo = (bar = 2);
for (var i = 0; i < 1; i++) {};

const class1 = class NAME {
  constructor() {
    var name1: string = 'hello';
  }
};

const class1 = class NAME {
  static pi: number = 3.14;
};

interface IEmployee {
  empCode: number;
  empName: string;
  getSalary: (number) => number; // arrow function
  getManagerName(number): string;
}

let a = true;
const a = {};

function foo() {
  let a = 1,
    b = false;
  if (a) {
    let c = 3,
      d = null;
  }
}

function foo() {
  const a = 1,
    b = true;
  if (a) {
    const c = 3,
      d = null;
  }
}

function foo() {
  let a = 1;
  const b = false;
  var c = true;
}

function foo() {
  var bar = 1;
  let baz = 2;
  const qux = 3;
}

interface GreetingSettings {
  greeting: string;
  duration?: number;
  color?: string;
}

type GreetingLike = string | (() => string) | Greeter;

var bar: string = function (): string {
  return 'string';
};

var bar: string = function (arg1: stirng): string {
  return 'string';
};

declare const foo: number = 'asd';

const foo: number = 'asd';

namespace myLib {
  let numberOfGreetings: number = 2;
};